package com.wjh.order.request;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 商品下单 请求参数
 * 
 * @author wenjianhai
 * @date 2023/6/22
 * @since JDK 17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
public class SaveOrderRequest implements Serializable {
	@Serial
	private static final long serialVersionUID = 6387965221773706234L;

	/** 商品信息 */
	@NotEmpty(message = "商品不能为空")
	@Valid
	private List<OrderGoodsRequest> goodsList;
}
